<template>
  <div class="particles-js-box">
    <div id="particles-js">
        <div  class="link">
        <router-link to="/articles" style="color:white;"> 首页 </router-link>
       </div>
    </div>
  </div>
</template>

<script>
/* eslint-disable */
import particlesJs from "./particles.js";
import particlesConfig from "./particles.json";
export default {
  data() {
    return {};
  },
  mounted() {
    this.init();
  },
  methods: {
    init() {
      particlesJS("particles-js", particlesConfig);
      document.body.style.overflow = "hidden";
    },
  },
};
</script>

<style scoped>
.particles-js-box {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}
#particles-js {
  background-color: #275f6e;
  width: 100%;
  height: 100%;
  position:relative;
}
.link{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}
</style>
